package com.tensquare.notice.client;

import com.tensquare.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "tensquare-article")
public interface ArticleClient {

  /**
   * 根据ID查询文章
   *
   * @param articleId
   * @return
   */
  @RequestMapping(value = "article/{articleId}", method = RequestMethod.GET)
  Result findById(@PathVariable String articleId);
}
